Viewer Test Utils
The ViewerTestUtils class is a utility designed to facilitate the setup of test environments for both unit testing and browser testing. It provides methods to configure the testing environment and manage animations during testing.
Constructors
new ViewerTestUtils()
Creates a new instance of the ViewerTestUtils class.
Returns
ViewerTestUtils: A new instance of the utility class.
Methods
setupBrowserTestingEnvironment()
Initializes the Viewer for a browser testing environment.
Returns
void
setupUnitTestingEnvironment()
Initializes the Viewer for a unit testing environment.
Returns
void
skipAnimations(skip?: boolean)
Disables spring animations to prevent redundant frames from being rendered and to ensure predictable animated values.
Parameters
skip(boolean): Optional. Defaults totrue. Iftrue, animations are disabled.
Returns
void